home *** CD-ROM | disk | FTP | other *** search
- Path: phoenix.owl.de!not-for-mail
- Newsgroups: comp.sys.amiga.programmer
- References: <571.6679T1361T1440@login.eunet.no>
- From: "Frank Wille" <frank@phoenix.owl.de>
- Date: Fri, 19 Apr 1996 19:13:25 +0200
- X-NewsReader: IntuiNews 1.3b Beta 3 (5.11.95)
- Subject: Re: MemList
- Message-ID: <42116803@phoenix.owl.de>
- Organization: Phantasm
-
- Patrick Hanevold wrote on 15 Apr 1996 21:43:30 GMT
- about "MemList" :
-
-
- PH> Can anyone tell me whats wrong with this line?
- PH>
- PH> printf("$%x\n",((structMemList*)&SysBase->MemList)->ml_ME[0].me_Addr);
- PH>
- PH> Its supose to print out the start of the first memory hunk.
-
- 1. SysBase->MemList is a List structure, not MemList.
- 2. The nodes of MemList are MemHeader structures, not MemList.
-
- Try this:
-
- printf("$%08lx\n",((struct MemHeader *)SysBase->MemList.lh_Head)->mh_Lower);
-
-
- -- _
- _ // Frank EMail: frank@phoenix.owl.de
- \X/ IRC: Phx @ #amiga(ger)
-
-